package cn.qingyun.gis;

import cn.qingyun.gis.modules.scenes.util.BaseUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

import java.io.File;

@SpringBootApplication
@EnableAsync
@MapperScan(basePackages = "cn.qingyun.gis.**.mapper")
@EnableFeignClients(basePackages = {"cn.qingyun.gis.**.feign"})
@EnableScheduling
public class ThirdPartyProofreadSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(ThirdPartyProofreadSystemApplication.class, args);
        new File(BaseUtil.getUploadFilesPath()).mkdir();
    }
}
